import { createApp } from "vue";
import App from "./App.vue";

import router from "./router";
import store from "./store";

import {
  ElButton,
  ElInput,
  ElDialog,
  ElSelect,
  ElOption,
  ElTooltip,
  ElForm,
  ElFormItem,
  ElInputNumber
} from "element-plus";
// import ElementPlus from "element-plus";
// import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "element-plus/dist/index.css";

import "@/assets/css/app.scss";

const app = createApp(App);

app.use(store);
app.use(router);
app.use(ElButton);
app.use(ElInput);
app.use(ElDialog);
app.use(ElSelect);
app.use(ElOption);
app.use(ElTooltip);
app.use(ElForm);
app.use(ElFormItem);
app.use(ElInputNumber);

/*for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}*/

app.mount("#app");
